<?php
/**
 * Minhlog Domain_Entity 文章标签关系类
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 *
 * @category   Domain
 * @package    Domain_Entity
 * @copyright  Copyright (c) 2009-2010 Minh.Shu@gmail.com
 * @license    New BSD License
 * @author     Minh.Shu
 * @version    $Id: Article.php 2 2010-01-17 13:49:08Z Minh.Shu $
 *
 */

class Domain_Entity_Tag_Article extends Domain_Entity_Abstract
{
    protected $_relationId;
    protected $_articleId;
    protected $_tagId;

    // set/get方法定义开始
    public function setPrimaryId ($primaryId)
    {
        return $this->setRelationId($primaryId);
    }

    public function getPrimaryId()
    {
        return $this->getRelationId();
    }

    public function setRelationId($relationId)
    {
        $this->_relationId = (int) $relationId;
        return $this;
    }

    public function getRelationId()
    {
        return $this->_relationId;
    }

    public function setTagId($tagId)
    {
        $this->_tagId = (int) $tagId;
        return $this;
    }

    public function getTagId()
    {
        return $this->_tagId;
    }

    public function setArticleId($articleId)
    {
        $this->_articleId = (int) $articleId;
        return $this;
    }

    public function getArticleId()
    {
        return $this->_articleId;
    } // set/get方法定义结束
}